package com.xx.xunyou.dao.item.xiaochenggushiduo;

import com.xx.xunyou.entity.item.chizhuzaixiang.Chizhuzaixiang;
import com.xx.xunyou.entity.item.xiaochenggushiduo.Xiaochenggushiduo;
import com.xx.xunyou.entity.item.xiaochenggushiduo.vo.XiaochenggushiduoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface XiaochenggushiduoDAO {
    int deleteByPrimaryKey(Integer xiaochenggushiduoId);

    int insert(Xiaochenggushiduo record);

    int insertSelective(Xiaochenggushiduo record);

    Xiaochenggushiduo selectByPrimaryKey(Integer xiaochenggushiduoId);

    int updateByPrimaryKeySelective(Xiaochenggushiduo record);

    int updateByPrimaryKey(Xiaochenggushiduo record);

    /**
     * 查询数据条数
     * @param map
     * @return
     */
    Integer queryListCountToManager(Map<String,Object> map);

    /**
     * 查询数据
     * @param map
     * @return
     */
    List<Map> queryListToManager(Map<String,Object> map);

    /**
     * 添加主键返回
     * @param record
     */
    void insertBackId(Xiaochenggushiduo record);

    /**
     * 推荐
     * @param xiaochenggushiduoId
     * @param date
     */
    void recommend(@Param("xiaochenggushiduoId") Integer xiaochenggushiduoId, @Param("date") Date date);

    /**
     * 取消推荐
     * @param xiaochenggushiduoId
     */
    void notRecommend(@Param("xiaochenggushiduoId")Integer xiaochenggushiduoId);

    /**
     * 查询数据给app
     * @param map
     * @return
     */
    List<XiaochenggushiduoVo> queryListToAPPIndex(Map<String,Object> map);
}